package gov.nbcs.govp.htgl.ui.action;

import gov.nbcs.govp.htgl.ui.ActionUI;

import java.awt.event.ActionEvent;
import com.foundercy.pf.framework.systemmanager.CommonAction;
import com.foundercy.pf.framework.systemmanager.FModulePanel;

public class GovpImpAction extends CommonAction{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public void actionPerformed(ActionEvent e) {
        FModulePanel mPanel = getModulePanel();
        String Check_flag = this.getParameter("flag")==null? "":(String) this.getParameter("flag");
		if("0".equals(Check_flag))
		{
	        if(mPanel instanceof ActionUI) {
	            ((ActionUI)mPanel).doImport();
	        }
		}
	    else if("1".equals(Check_flag))
	    {
	        if(mPanel instanceof ActionUI) {
					 ((ActionUI)mPanel).doInsertBatch();
	           
        }
	    }
    }
}